﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Employees
{
    public static class EmployeeBLL
    {
        public static int GetEmployeeCount(IList<Condition> conditionArray)
        {
            return EmployeeDAL.GetEmployeeCount(conditionArray);
        }

        public static IList<EmployeeEntity> GetEmployeeList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return EmployeeDAL.GetEmployeeList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static EmployeeEntity GetEmployee(int employeeID)
        {
            return EmployeeDAL.GetEmployee(employeeID);
        }

        public static int InsertEmployee(EmployeeEntity employee)
        {
            return EmployeeDAL.InsertEmployee(employee);
        }

        public static int UpdateEmployee(EmployeeEntity employee)
        {
            return EmployeeDAL.UpdateEmployee(employee);
        }

        public static int DeleteEmployee(int employeeID)
        {
            return EmployeeDAL.DeleteEmployee(employeeID);
        }

        public static int UpdateEmployeePass(int userID, string oldPass, string newPass)
        {
            return EmployeeDAL.UpdateEmployeePass(userID, oldPass, newPass);
        }

        public static int ResetPass(int employeeID, string newpass)
        {
            return EmployeeDAL.ResetPass(employeeID, newpass);
        }
    }
}
